package com.example.tiantian.process;

import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;

public class ProcessWidget extends AppWidgetProvider {

    Intent service;

    @Override
    public void onEnabled(Context context) {
        super.onEnabled(context);
        service = new Intent(context, ProcessWidgetService.class);
        context.startService(service);
    }

    @Override
    public void onDisabled(Context context) {
        super.onDisabled(context);
        context.stopService(service);
    }
}
